require 'sri'

DEBUG = true

file = File.new("examples/example2.rb")
file_string = file.read
file.close

root = ParseTree.translate( file_string )
puts root.to_yaml

p ast = SRI::Parser.make_ast( root )

program = SRI::Program.new( ast )

v = SRI::Scope.new
puts "\n=> " + SRI.eval( program.body, program, v ).inspect
p v

